<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>照片上传</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="resource/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="resource/uploadify/uploadify.css">

<style type="text/css">
body {
	font: 13px Arial, Helvetica, Sans-serif;
}
</style>


<script type="text/javascript">
$(document).ready(function(){
	$("#file_upload").uploadify({
		'fileTypeDesc' : '*.jpg',
		'auto' : false,
		'swf' : 'resource/uploadify/uploadify.swf',
		'uploader' : 'libs/upload.php?act={$act}',
		'buttonText' : '浏览文件',
		'onQueueComplete' : function(queueData){
			alert(queueData.uploadsSuccessful + '个文件成功上传');
		},
		'onUploadError' : function(file, errorCode, errorMsg, errorString) {
            alert('文件: ' + file.name + ' 上传失败: ' + errorString);
        }
	});


});
</script>

</head>
<body style="font-size:12px;font-family:'微软雅黑';">
<h2>照片上传</h2>
<form>
<div id="queue"></div>
<input id="file_upload" name="file_upload" type="file" multiple="true">
<div class="uploadify-button" style="height: 30px; line-height: 30px; width: 120px;">
<a href="javascript:$('#file_upload').uploadify('upload', '*')" style="text-decoration:none;color:white">上传文件</a>
</div>
</form>

</body>
</html>
